//
//  BaseInterface.h
//  EverydayNews
//
//  Created by 李沛池 on 2017/8/6.
//  Copyright © 2017年 Godlike. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ENInterface : NSObject

//读取广告
+ (void)loadADWithPageNum:(NSInteger)pageNum
                    block:(void (^)(NSDictionary *, NSError *))block;

//获取股票列表
+ (void)getSharesListWithMarket:(NSString *)market
                           page:(NSInteger)page
                        success:(void (^)(NSDictionary *json))success
                        failure:(void (^)(NSError *error))failure;

//获取股票详情
+ (void)getSharesDetailListWithStocks:(NSString *)stocks
                              success:(void (^)(NSDictionary *json))success
                              failure:(void (^)(NSError *error))failure;

//搜索股票
+ (void)searchSharesListWithWord:(NSString *)word
                         success:(void (^)(NSDictionary *json))success
                         failure:(void (^)(NSError *error))failure;

@end
